Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unused variable assignment and use #6

Open
wants to merge 1 commit into
base: FixTechDebt
Choose a base branch
from

Conversation

Tomas2h
Copy link

@Tomas2h Tomas2h commented Mar 16, 2018

This PR changes (delete as applicable):

  • Nothing, it's a bug fix (code smell fix)

Describe the changes below:
removed unused assignment and extended condition as 1/0 gives an inverse of infinity

@TCatshoek TCatshoek force-pushed the RemoveAssigmentInCamera branch from 65fb23f to ef72c0d Compare March 16, 2018 21:23
@Tomas2h Tomas2h closed this Mar 16, 2018
@Tomas2h Tomas2h changed the base branch from master to FixTechDebt March 16, 2018 21:29
@Tomas2h Tomas2h reopened this Mar 16, 2018
@TCatshoek
Copy link

How certain are we this doesn't break anything?

@gerardva
Copy link

I dont think this is properly tested yet, we should do that first before submitting the PR to Phaser

@TCatshoek
Copy link

Agreed, lets not include this for now, until we're sure it is ok.

@12casper3
Copy link

why would it break anything?
JavaScript creates a new scope for every function, so all these determinant values can not be used outside of the function. And since they are not stored into the input/output objects of the function, they can never be accessed again right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants